<!DOCTYPE html>
<html lang="zh-CN" color-mode=light>


<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Apache POI PPT幻灯片转图片，中文乱码终极解决方案 - 树朾的开源技术分享</title>
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta name="google" content="notranslate" />
  <meta name="keywords" content="开源, 分享">
  <meta name="description" content="最近项目有需求，把PPT转成图片文件，并输出到PDF文...">
  <meta name="author" content="scwang90">
  <link rel="icon" href="/images/icons/favicon.ico">
  
  
  
  
  

  
<link rel="stylesheet" href="/css/style.css">


  
    
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1445822_p6ry5n7lrr.css">

  

  
    
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">

  

  
    
      
        
        
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/xcode.min.css" name="highlight-style" mode="light">

      
        
        
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/solarized-dark.min.css" name="highlight-style" mode="dark">

      
  

  <script>
    var CONFIG = window.CONFIG || {};
    var ZHAOO = window.ZHAOO || {};
    CONFIG = {
      isHome: false,
      fancybox: true,
      pjax: false,
      loading: {
        gif: '/images/theme/loading.gif',
        lottie: ''
      },
      lazyload: {
        enable: true,
        only_post: 'false',
        loading: {
          gif: '/images/theme/loading.gif',
          lottie: ''
        }
      },
      donate: {
        enable: false,
        alipay: '/images/donate/pay_alipay.jpg',
        wechat: '/images/donate/pay_wxpay.jpg',
        tencent: '/images/donate/pay_tencent.jpg'
      },
      galleries: {
        enable: true
      },
      fab: {
        enable: true,
        always_show: false
      },
      carrier: {
        enable: true
      },
      daovoice: {
        enable: false
      },
      preview: {
        background: {
          default: '',
          api: ''
        },
        motto: {
          default: '我在开了灯的床头下，想问问自己的心啊。',
          typing: true,
          api: 'https://v2.jinrishici.com/one.json',
          data_contents: '["data","content"]'
        },
      },
      qrcode: {
        enable: true,
        type: 'url',
        image: 'https://pic.izhaoo.com/weapp-code.jpg',
      },
      toc: {
        enable: true
      },
      scrollbar: {
        type: 'default'
      },
      notification: {
        enable: false,
        delay: 4500,
        list: '',
        page_white_list: '',
        page_black_list: ''
      },
      search: {
        enable: false,
        path: ''
      }
    }
  </script>

  

  

<meta name="generator" content="Hexo 6.2.0"></head>

<body class="lock-screen">
  <div class="loading" id="loading"></div>
  
    


  <nav class="navbar">
    <div class="left">
      
        <i class="iconfont iconhome j-navbar-back-home"></i>
      
      
        <i class="iconfont iconqrcode j-navbar-qrcode"></i>
      
      
        <i class="iconfont iconmoono" id="color-toggle" color-toggle="light"></i>
      
      
    </div>
    <div class="center">Apache POI PPT幻灯片转图片，中文乱码终极解决方案</div>
    <div class="right">
      <i class="iconfont iconmenu j-navbar-menu"></i>
    </div>
    
      <div id="qrcode-navbar"></div>
    
  </nav>

  
  

<nav class="menu">
  <div class="menu-container">
    <div class="menu-close">
      <i class="iconfont iconbaseline-close-px"></i>
    </div>
    <ul class="menu-content"><li class="menu-item">
        <a href="/ " class="underline "> 首页</a>
      </li><li class="menu-item">
        <a href="/galleries/ " class="underline "> 摄影</a>
      </li><li class="menu-item">
        <a href="/archives/ " class="underline "> 归档</a>
      </li><li class="menu-item">
        <a href="/tags/ " class="underline "> 标签</a>
      </li><li class="menu-item">
        <a href="/categories/ " class="underline "> 分类</a>
      </li><li class="menu-item">
        <a href="/about/ " class="underline "> 关于</a>
      </li></ul>
    
      <div class="menu-copyright"><p>Powered by <a target="_blank" href="https://github.com/scwang90">scwang90</a>  |  Theme - <a target="_blank" href="https://github.com/izhaoo/hexo-theme-zhaoo">zhaoo</a></p> <p><a target="_blank" href="http://beian.miit.gov.cn/"><span>黔ICP备2021004317号-1</span></a><span>  |  </span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img class="lazyload" data-original="/images/icons/icon-filing.png" src="https://www.beian.gov.cn/img/new/gongan.png"/> <span> 贵公网安备 52010202002539号</span></a></p></div>
    
  </div>
</nav>
  <main id="main">
  <div class="article-wrap">
    
      <div class="row container container-lg">
        <div class="col-xl-2"></div>
        <div class="col-xl-8"><article class="article">
  <div class="wrap">
    <section class="head">
  <img   class="lazyload" data-original="/images/theme/post-image.jpg" src=""  draggable="false">
  <div class="head-mask">
    <h1 class="head-title">Apache POI PPT幻灯片转图片，中文乱码终极解决方案</h1>
    <div class="head-info">
      <span class="post-info-item"><i class="iconfont iconcalendar"></i>十二月 11, 2019</span>
      
      <span class="post-info-item"><i class="iconfont iconfont-size"></i>4790</span>
    </div>
  </div>
</section>
    <section class="main">
      <section class="content article-entry">
        
          
            <p>最近项目有需求，把PPT转成图片文件，并输出到PDF文件中。公司项目都采用Java语言，自然使用了</p>
          
        
        <h2 id="乱码问题"><a href="#乱码问题" class="headerlink" title="乱码问题"></a>乱码问题</h2><p>最近项目有需求，把PPT转成图片文件，并输出到PDF文件中。公司项目都采用Java语言，自然使用了 <a target="_blank" rel="noopener" href="https://poi.apache.org/">Apache POI</a>. 但是过程中遇到了棘手的问题，部分中文输出之后变成乱码如下如。</p>
<p><img    class="lazyload" data-original="http://domain.teecloud.cn/edu-uploads/SVOH4/f2e23d47556c276c0ea2a0e78d839ee11600opt.png" src=""   ><span class="image-caption">image</span></p>
<h2 id="现有解决办法"><a href="#现有解决办法" class="headerlink" title="现有解决办法"></a>现有解决办法</h2><ol>
<li><a target="_blank" rel="noopener" href="https://blog.csdn.net/kobe81p/article/details/83433420">使用poi处理ppt 转为图片乱码问题解决</a></li>
<li><a target="_blank" rel="noopener" href="https://www.oschina.net/question/923292_108247">apache poi pptx 中文乱码 乱码</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/it20120227/archive/2011/07/11/2370744.html">java转换ppt,ppt转成图片，乱码问题解决</a></li>
<li><a target="_blank" rel="noopener" href="https://jingyan.baidu.com/article/48206aead62055216bd6b37d.html">Java处理PPTX转换PDF中文乱码的步骤</a></li>
</ol>
<p>百度到这么多的解决方案，一开始还很兴奋，以为问题很快就解决了，没想到最后还是发现有那么一小部分文字还是出现了乱码，百思不得其解。</p>
<p>我开始认真分析，上面的解决方案为什么会不能解决全部的乱码问题。我们一起来看看他们的解决方案。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">Slide[] slide = ppt.getSlides();<span class="comment">//获取PPT文档的幻灯片列表</span></span><br><span class="line"><span class="keyword">for</span> (Slide slide: ppt.getSlides()) &#123;<span class="comment">//遍历每一张幻灯片</span></span><br><span class="line">    <span class="keyword">for</span>( XSLFShape shape : slide.getShapes() )&#123;<span class="comment">//遍历单页幻灯片中的形状</span></span><br><span class="line">        <span class="keyword">if</span> ( shape <span class="keyword">instanceof</span> XSLFTextShape )&#123;<span class="comment">//如果是文本形状</span></span><br><span class="line">            <span class="type">XSLFTextShape</span> <span class="variable">txtshape</span> <span class="operator">=</span> (XSLFTextShape)shape ;</span><br><span class="line">            <span class="comment">//遍历文本形状中的段落</span></span><br><span class="line">            <span class="keyword">for</span> ( XSLFTextParagraph textPara : txtshape.getTextParagraphs() )&#123;</span><br><span class="line">                <span class="comment">//遍历段落中的文本</span></span><br><span class="line">                <span class="keyword">for</span>(XSLFTextRun textRun: textPara.getTextRuns()) &#123;</span><br><span class="line">                    <span class="comment">//给文本指定字体为：宋体</span></span><br><span class="line">                    textRun.setFontFamily(<span class="string">&quot;宋体&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>代码中我加了一些注释，大体上我们可以看出，这个代码主要的工作就是想通过遍历幻灯片的元素，为每个文本一一指定<code>宋体</code>。这也是为什么很多人都能通过这个代码解决问题。</p>
<p>然而我自己通过这个代码并不能解决全部的乱码问题。无奈最后自己只能一步一步的单步调试<code>POI</code> 源码，最终发现了问题元凶。上面的代码中又这么一行：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> ( shape <span class="keyword">instanceof</span> XSLFTextShape )<span class="comment">//如果是文本形状，这段代码只处理了一种形状</span></span><br></pre></td></tr></table></figure>

<p>它只处理了一种 <code>shape</code> 然而我在 <code>POI</code> 的源码中找到了所有的形状如下：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">public</span> Drawable <span class="title function_">getDrawable</span><span class="params">(Shape&lt;?, ?&gt; shape)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> TextBox) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((TextBox)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> FreeformShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((FreeformShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> TextShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((TextShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> TableShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((TableShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> GroupShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((GroupShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> PictureShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((PictureShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> GraphicalFrame) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((GraphicalFrame)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> Background) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((Background)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> ConnectorShape) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((ConnectorShape)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> Slide) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((Slide)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> MasterSheet) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((MasterSheet)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape <span class="keyword">instanceof</span> Sheet) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="built_in">this</span>.getDrawable((Sheet)shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> <span class="keyword">if</span> (shape.getClass().isAnnotationPresent(DrawNotImplemented.class)) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">DrawNothing</span>(shape);</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">IllegalArgumentException</span>(<span class="string">&quot;Unsupported shape type: &quot;</span> + shape.getClass());</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br></pre></td></tr></table></figure>
<p>虽然从名称来看，PPT的文本应该只存在于 <code>TextShape</code> 中，但是事实证明其他的 形状 <code>shape</code> 中也出现了文本。所以我立刻意识到，要能防止所有的乱码问题，必须把这些 <code>shape</code> 全部遍历，并且一一设置宋体。想想就知道工作量不小。</p>
<h2 id="最终方案"><a href="#最终方案" class="headerlink" title="最终方案"></a>最终方案</h2><p>正当我准备写一个循环能遍历所有 <code>Shape</code> 的时候，在 <code>POI</code> 源码中发现了一个神奇的东西：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">//DrawFontManager 不是字体管理器吗？</span><br><span class="line">public DrawFontManager getFontManager(Graphics2D graphics) &#123;</span><br><span class="line">    //可以通过 graphics.getRenderingHint 获取</span><br><span class="line">    DrawFontManager fontHandler = graphics.getRenderingHint(Drawable.FONT_HANDLER);</span><br><span class="line">    return (DrawFontManager)(fontHandler != null ? fontHandler : new DrawFontManagerDefault());</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p><code>字体管理器</code> 立刻吸引了我的注意，并且值得兴奋的是，它是通过 <code>graphics.getRenderingHint</code> 来获取的,那么我们就可以指定自己的字体管理器！</p>
<p>然后我又开始研究 <code>DrawFontManager</code> 字体管理器 在其源码中发现：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//字体映射，把一个字体映射成另一个字体</span></span><br><span class="line"><span class="keyword">public</span> FontInfo <span class="title function_">getMappedFont</span><span class="params">(Graphics2D graphics, FontInfo fontInfo)</span> &#123;</span><br><span class="line">    <span class="keyword">return</span> <span class="built_in">this</span>.getFontWithFallback(graphics, Drawable.FONT_MAP, fontInfo);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>天助我也，竟然有字体映射功能，那么我就不用去遍历那么多的 <code>shape</code> 了!直接把所有字体映射到 <code>宋体</code> 就好了。代码如下</p>
<ol>
<li>kotlin<figure class="highlight kotlin"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">graphics.setRenderingHint(Drawable.FONT_HANDLER, <span class="keyword">object</span> : DrawFontManagerDefault() &#123;</span><br><span class="line">    <span class="keyword">override</span> <span class="function"><span class="keyword">fun</span> <span class="title">getMappedFont</span><span class="params">(graphics: <span class="type">Graphics2D</span>?, fontInfo: <span class="type">FontInfo</span>?)</span></span>: FontInfo &#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="comment">//把所有字体都映射成 宋体</span></span><br><span class="line">            fontInfo?.typeface = <span class="string">&quot;宋体&quot;</span></span><br><span class="line">        &#125; <span class="keyword">catch</span> (e: Exception) &#123;</span><br><span class="line">            <span class="comment">//有一些字体是只读属性，会抛异常，忽略掉</span></span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> <span class="keyword">super</span>.getMappedFont(graphics, fontInfo)</span><br><span class="line">    &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></li>
<li>java<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">graphics.setRenderingHint(Drawable.FONT_HANDLER, <span class="keyword">new</span> <span class="title class_">DrawFontManagerDefault</span>() &#123;</span><br><span class="line">    <span class="keyword">public</span> FontInfo <span class="title function_">getMappedFont</span><span class="params">(Graphics2D graphics, FontInfo fontInfo)</span> &#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="comment">//把所有字体都映射成 宋体</span></span><br><span class="line">            fontInfo.setTypeface(<span class="string">&quot;宋体&quot;</span>);</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            <span class="comment">//有一些字体是只读属性，会抛异常，忽略掉</span></span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> <span class="built_in">super</span>.getMappedFont(graphics, fontInfo);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure></li>
</ol>
<p>现在问题已经完美解决，每个角落的乱码都不存在了！如果这段代码也帮助到了你，记得点赞噢！</p>

      </section>
      <section class="extra">
        
          <ul class="copyright">
  
    <li><strong>本文作者：</strong>scwang90</li>
    <li><strong>本文链接：</strong><a href="https://blog.scwang90.cn/2019/12/11/apache-poi-garbled/index.html" title="https:&#x2F;&#x2F;blog.scwang90.cn&#x2F;2019&#x2F;12&#x2F;11&#x2F;apache-poi-garbled&#x2F;index.html">https:&#x2F;&#x2F;blog.scwang90.cn&#x2F;2019&#x2F;12&#x2F;11&#x2F;apache-poi-garbled&#x2F;index.html</a></li>
    <li><strong>版权声明：</strong>本分享所有文章均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" title="BY-NC-SA" target="_blank" rel="noopener">BY-NC-SA</a> 许可协议，转载请注明出处！</li>
  
</ul>
        
        
        
  <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/POI/" rel="tag">POI</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E4%B9%B1%E7%A0%81/" rel="tag">乱码</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%BD%AC%E6%8D%A2/" rel="tag">转换</a></li></ul> 

        
  <nav class="nav">
    <a href="/2021/04/13/npm-yarn/"><i class="iconfont iconleft"></i>npm 和 yarn 你选哪个？</a>
    <a></a>
  </nav>

      </section>
      
    </section>
  </div>
</article></div>
        <div class="col-xl-2">
          
            
  <aside class="toc-wrap">
    <h3 class="toc-title">文章目录：</h3>
    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98"><span class="toc-text">乱码问题</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%8E%B0%E6%9C%89%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95"><span class="toc-text">现有解决办法</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%80%E7%BB%88%E6%96%B9%E6%A1%88"><span class="toc-text">最终方案</span></a></li></ol>
  </aside>

          
        </div>
      </div>
    
  </div>
</main>
  

<footer class="footer">
  <div class="footer-social"><a 
        href="tencent://message/?Menu=yes&uin=283371828 "
        target="_blank"
        class="footer-social-item"
        onMouseOver="this.style.color= '#12B7F5'" 
        onMouseOut="this.style.color='#33333D'">
          <i class="iconfont  iconQQ "></i>
      </a><a 
        href="javascript:; "
        target="_blank"
        class="footer-social-item"
        onMouseOver="this.style.color= '#09BB07'" 
        onMouseOut="this.style.color='#33333D'">
          <i class="iconfont  iconwechat-fill "></i>
      </a><a 
        href="https://github.com/scwang90 "
        target="_blank"
        class="footer-social-item"
        onMouseOver="this.style.color= '#9f7be1'" 
        onMouseOut="this.style.color='#33333D'">
          <i class="iconfont  icongithub-fill "></i>
      </a><a 
        href="mailto:scwang90@hotmail.com "
        target="_blank"
        class="footer-social-item"
        onMouseOver="this.style.color=#FF3B00" 
        onMouseOut="this.style.color='#33333D'">
          <i class="iconfont  iconmail"></i>
      </a></div>
  
    <div class="footer-copyright"><p>Powered by <a target="_blank" href="https://github.com/scwang90">scwang90</a>  |  Theme - <a target="_blank" href="https://github.com/izhaoo/hexo-theme-zhaoo">zhaoo</a></p> <p><a target="_blank" href="http://beian.miit.gov.cn/"><span>黔ICP备2021004317号-1</span></a><span>  |  </span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img class="lazyload" data-original="/images/icons/icon-filing.png" src="https://www.beian.gov.cn/img/new/gongan.png"/> <span> 贵公网安备 52010202002539号</span></a></p></div>
  
</footer>
  
      <div class="fab fab-plus">
    <i class="iconfont iconplus"></i>
  </div>
  
  
  
  <div class="fab fab-up">
    <i class="iconfont iconcaret-up"></i>
  </div>
  
  
  
    
<script src="/js/color-mode.js"></script>

  
  
</body>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>





  
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"></script>




  
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>






  
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>




<script src="/js/utils.js"></script>
<script src="/js/script.js"></script>







  <script>
    (function () {
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      } else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
    })();
  </script>













</html>